package com.onepower.admin.controller;


import com.onepower.core.modules.repository.entity.MatchRefereeRule;
import com.onepower.core.modules.service.IMatchRefereeRuleService;
import com.onepower.core.result.CommonResult;
import com.onepower.core.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author kin
 * @since 2018-08-24
 */
@RestController
@RequestMapping("/api/match/refereeRule")
public class MatchRefereeRuleController {

    @Autowired
    private IMatchRefereeRuleService matchRefereeRuleService;

    @RequestMapping(value = "list", method = RequestMethod.GET)
    public CommonResult list() {
        List<MatchRefereeRule> matchRefereeRuleList = matchRefereeRuleService.list(null);
        return ResultUtils.ok(matchRefereeRuleList);
    }
}
